<template>
	<view class="content">
		<mumu-one-code @success='handlerSuccess' definition :readers='["code_128_reader","ean_reader","ean_8_reader","code_39_reader","code_39_vin_reader"]'></mumu-one-code>
	</view>
</template>

<script>
	import MumuOneCode from '@/components/mumu-oneCode/mumu-oneCode.vue'

	export default {
		components: {
			MumuOneCode
		},
		methods: {
			handlerSuccess(code) {
				uni.showModal({
					title: '成功',
					content: code,
					success: () => {
						uni.setStorageSync("qrcode",code);
						uni.navigateBack()
					}
				})
			}
		}
	}
</script>

<style scoped>
   .content{
	
   }
</style>